﻿#pragma once
#include "OpenImage.h"


// ZFTDlg 对话框

class ZFTDlg : public CDialog
{
	DECLARE_DYNAMIC(ZFTDlg)

public:
	ZFTDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~ZFTDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_ZFT };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()

public:
	OpenImageClass OImageZFT;
	virtual BOOL OnInitDialog();

	void DrawRFact();
	void DrawGFact();
	void DrawBFact();

	void DrawRLine();
	void DrawGLine();
	void DrawBLine();

	void DrawOldRLine();
	void DrawOldGLine();
	void DrawOldBLine();

	CDC * pDC;
	afx_msg void OnBnClickedButtonLayout();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);

	bool OldLineFlagR;
	bool OldLineFlagG;
	bool OldLineFlagB;

	HDC hdc;
	afx_msg void OnBnClickedButtonAdapt();
};
